package com.huidu.bitrade.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 团队推荐手续费奖励
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("ac_group_charge_award")
public class AcGroupChargeAward {

    private Long id;

    /**
     * 用户id
     */
    private Long memberId;

    /**
     * 奖励数量
     */
    private BigDecimal number;

    /**
     * 奖励cnhd比例
     */
    private BigDecimal proportion;

    /**
     * 参与计算的金额，基数
     */
    private BigDecimal money;

    /**
     * 奖励用户
     */
    private Long toMemberId;

    /**
     * 奖励用户当前星级
     */
    private Integer toMemberStar;

    /**
     * 是否已经发放 0否 1是
     */
    private Integer status;

    /**
     * 发放失败原因
     */
    private String fail;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
